﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu.Master" AutoEventWireup="true"
    CodeBehind="fBeginingGL.aspx.cs" Inherits="MixScriptWeb.Accounting.fBeginingGL"
    MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%-- <script type="text/javascript">
        $(document).ready(function () {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            function EndRequestHandler(sender, args) {
                $('.mydatepickerclass').datepicker({ dateFormat: 'dd-mm-yy' });
            }

        });
    </script>--%>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            <asp:Label ID="lblTitle" runat="server" Text="Beginning Balance" Font-Bold="True"></asp:Label>
        </h2>
        <br />
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="500px" Width="100%" ScrollBars="Auto"
            CssClass="table-ui">
            <asp:GridView ID="gvBeginingJournal" AllowSorting="true" runat="server" Width="100%"
                AutoGenerateColumns="false" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound">
                <AlternatingRowStyle CssClass="alt" />
                <Columns>
                    <asp:BoundField DataField="idcoa" HeaderText="ACCOUNT" HeaderStyle-Width="80px" />
                    <asp:BoundField DataField="coaname" HeaderText="DESCRIPTION" />
                    <asp:BoundField DataField="process_name" HeaderText="PROCESS" />
                    <asp:BoundField DataField="coatype" HeaderText="COA TYPE" HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField DataField="process" HeaderText="process" HeaderStyle-CssClass="hiden"
                        ItemStyle-CssClass="hiden" />
                    <asp:TemplateField HeaderText="Debit">
                        <ItemTemplate>
                            <asp:TextBox ID="txtDebit" runat="server" Text='<%# Bind("DEBIT") %>' Enabled="false"
                                Width="100px" CssClass="input-set" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Credit">
                        <ItemTemplate>
                            <asp:TextBox ID="txtCredit" runat="server" Text='<%# Bind("CREDIT") %>' Enabled="false"
                                Width="100px" CssClass="input-set" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                <FooterStyle CssClass="ft" />
                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
            </asp:GridView>
        </asp:Panel>
        <table class="table-ui" width="100%">
            <tr>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="button" Width="100px"
                        OnClick="btnReset_click" />
                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" Width="100px"
                        OnClick="btnSave_click" />
                </td>
                <td align="right">
                    NOT BALANCE :
                    <asp:Label ID="labelTotal" runat="server" Text="0" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
